package com.solution.admin.customer.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.solution.admin.customer.dao.CustomerAccountDao;
import com.solution.admin.customer.entity.CustomerAccountEntity;
import com.solution.common.dao.impl.BaseDaoImpl;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 客户提现账号DAO实现
 * @author lufer
 * @date 2018-05-04 16:53:12
 */
@Repository
public class CustomerAccountDaoImpl extends BaseDaoImpl<CustomerAccountEntity> implements CustomerAccountDao {

	/**
	 * 保存客户提现账号信息
	 * @param customerAccountEntity
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:53:12
	 */
	@Override
	public long saveCustomerAccount(CustomerAccountEntity customerAccountEntity) {
		return super.insert(customerAccountEntity);
	}

	/**
	 * 分页查询客户提现账号信息
	 * @param pageParam 分页对象
	 * @param customerAccount 分页参数
	 * @return PageBean 分页参数及数据
	 * @author lufer
	 * @date 2018-05-04 16:53:12
	 */
	public PageBean listCustomerAccountPage(PageParam pageParam, Map<String, Object> param) {
		return super.listPage(pageParam, param);
	}

	/**
	 * 更新客户提现账号
	 * @param customerAccountEntity
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:53:12
	 */
	@Override
	public int updateCustomerAccount(CustomerAccountEntity customerAccountEntity) {
		return super.update(customerAccountEntity);
	}

	/**
	 * 删除客户提现账号
	 * @param customerAccountId
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:53:12
	 */
	public int deleteCustomerAccountById( Long id) {
		return super.deleteById(id);
	}
	
	/**
	 * 根据条件查询客户提现账号
	 * @param param
	 * @return
	 * @author lufer
	 * @date 2018-05-04 16:53:12
	 */
	@Override
	public List<CustomerAccountEntity> listCustomerAccount( Map<String, Object> param) {
		return super.listBy(param);
	}
}
